<template>
  <div id="course">
    <div class="course-item">
      <course-item/>
    </div>
  </div>
</template>

<script lang="ts">
import { Component , Vue } from 'vue-property-decorator'
import CourseItem from '../../components/common/course/CourseItem.vue'
import {courseRequest} from '../../api/CourseRequest'

@Component({
  name:'Course',
  components:{
    CourseItem
  }
})
export default class Course extends Vue{
  mounted(){
    let data=new FormData();
    data.append('sid','1');
    courseRequest.getAllTasks(data)
    .then(res=>{
      console.log(res);
    })
    .catch(err=>{
      console.log(err);
      
    })
  }
}
</script>